<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>box布局综合案例</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background-color: #f5f5f5;
        }

        a {
            color: #333;
            text-decoration: none;
        }

        .box {
            width: 298px;
            height: 415px;
            background-color: #fff;
            margin: 10px auto;

        }

        .box img {
            width: 100%;
        }

        .review {
            height: 140px;
            font-size: 14px;
            /* 这个盒子没有width属性 所以padding不会撑开盒子 */
            padding: 0px 30px;
            margin-top: 30px;
        }

        .appraise a {
            font-size: 12px;
            color: #b0b0b0;
            margin-top: 0px;
            padding: 0px 28px;
        }

        .info h4 {
            display: inline-block;
            font-weight: 400;
        }

        .info {
            margin-top: 10px;
            padding: 0px 28px;
            font-size: 12px;
        }

        .info span {
            color: #ff6700;
        }

        .info em {
            font-style: normal;
            color: #ebe4e0;
            margin: 0 8px 0 16px;
        }

        .box .appraise a:hover {
            text-decoration: underline;
        }
        .box .info a:hover{
            text-decoration: underline;
        }
    </style>
</head>

<body>
    <div class="box">
        <img src="img\bg2.jpg" alt="">
        <p class="review">
            <a href="#">防蓝光辐射眼镜男潮网红近视暴徒眼镜框女潮流痞帅易烊千玺同款框架... 【超值爆款/同城优惠】点击查看... </a>
        </p>
        <div class="appraise">
            <a href="#">来自2109664977的评价</a>
        </div>
        <div class="info">
            <h4>
                <a href="#">男潮易烊千玺同款眼镜...</a>
            </h4>
            <em>|</em>
            <span>999.9元</span>
        </div>
    </div>
</body>

</html>